package com.wzweb.action;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.framework.ActionForward;
import com.google.gson.Gson;
import com.wzweb.dao.ItemInfosDao;
import com.wzweb.dao.SortInfosDao;
import com.wzweb.entity.ItemInfo;
import com.wzweb.entity.SortInfo;

public class SortInfoAction {
	SortInfosDao sortInfosDao = new SortInfosDao();
	public ActionForward updateSort(HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		String sortType = request.getParameter("sortType");
		String sortStr = request.getParameter("sortStr");
		SortInfo sortInfo = new SortInfo(Integer.parseInt(sortType), sortStr);
		sortInfosDao.update(sortInfo);
		return null;
	}
}
